package com.example.osixaffairssystem.service.impl;

import com.example.osixaffairssystem.domain.model.Account;
import com.example.osixaffairssystem.mapper.AccountMapper;
import com.example.osixaffairssystem.service.AccountService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;


@Service
@RequiredArgsConstructor
public class AccountServiceImpl implements AccountService {

    final AccountMapper accountMapper;

    @Override
    public Account login(Account account) {
        account = accountMapper.login(account);
        return account;
    }
}
